package org.esti.model.dao;

import org.esti.model.Level;

import java.util.List;

/**
 * @author Artem Loginov (logart)
 */

/**
 * DAO is used to get, save and update objects information in database.
 * This dao manage training levels.
 */
public interface LevelDAO {
    /**
     * return all levels stored in db
     *
     * @return list of levels stored in db
     */
    List<Level> getAllLevels();

    /**
     * return specific level by it id
     *
     * @param id of level which will be returned
     * @return level with specific id
     */
    Level get(Long id);
}
